Optimal. Leaf size=147 \[ -\frac{a^2 c}{x}+a^2 d \log (x)+a^2 e x+\frac{1}{5} b x^5 (2 a f+b c)+\frac{1}{2} a x^2 (a f+2 b c)+\frac{2}{3} a b d x^3+\frac{1}{7} b x^7 (2 a h+b e)+\frac{1}{4} a x^4 (a h+2 b e)+\frac{g \left (a+b x^3\right )^3}{9 b}+\frac{1}{6} b^2 d x^6+\frac{1}{8} b^2 f x^8+\frac{1}{10} b^2 h x^{10} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.331635, antiderivative size = 147, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053 \[ -\frac{a^2 c}{x}+a^2 d \log (x)+a^2 e x+\frac{1}{5} b x^5 (2 a f+b c)+\frac{1}{2} a x^2 (a f+2 b c)+\frac{2}{3} a b d x^3+\frac{1}{7} b x^7 (2 a h+b e)+\frac{1}{4} a x^4 (a h+2 b e)+\frac{g \left (a+b x^3\right )^3}{9 b}+\frac{1}{6} b^2 d x^6+\frac{1}{8} b^2 f x^8+\frac{1}{10} b^2 h x^{10} \]
Antiderivative was successfully verified.
[In] Int[((a + b*x^3)^2*(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5))/x^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \frac{a^{2} c}{x} + a^{2} d \log{\left (x \right )} + a^{2} \int e\, dx + \frac{a x^{4} \left (a h + 2 b e\right )}{4} + \frac{a x^{3} \left (a g + 2 b d\right )}{3} + a \left (a f + 2 b c\right ) \int x\, dx + \frac{b^{2} f x^{8}}{8} + \frac{b^{2} g x^{9}}{9} + \frac{b^{2} h x^{10}}{10} + \frac{b x^{7} \left (2 a h + b e\right )}{7} + \frac{b x^{6} \left (2 a g + b d\right )}{6} + \frac{b x^{5} \left (2 a f + b c\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x**3+a)**2*(h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/x**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.15867, size = 152, normalized size = 1.03 \[ -\frac{a^2 c}{x}+a^2 d \log (x)+a^2 e x+\frac{1}{5} b x^5 (2 a f+b c)+\frac{1}{2} a x^2 (a f+2 b c)+\frac{1}{6} b x^6 (2 a g+b d)+\frac{1}{3} a x^3 (a g+2 b d)+\frac{1}{7} b x^7 (2 a h+b e)+\frac{1}{4} a x^4 (a h+2 b e)+\frac{1}{8} b^2 f x^8+\frac{1}{9} b^2 g x^9+\frac{1}{10} b^2 h x^{10} \]
Antiderivative was successfully verified.
[In] Integrate[((a + b*x^3)^2*(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5))/x^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.009, size = 152, normalized size = 1. \[{\frac{{b}^{2}h{x}^{10}}{10}}+{\frac{{b}^{2}g{x}^{9}}{9}}+{\frac{{b}^{2}f{x}^{8}}{8}}+{\frac{2\,{x}^{7}abh}{7}}+{\frac{{x}^{7}{b}^{2}e}{7}}+{\frac{{x}^{6}abg}{3}}+{\frac{{b}^{2}d{x}^{6}}{6}}+{\frac{2\,{x}^{5}abf}{5}}+{\frac{{x}^{5}{b}^{2}c}{5}}+{\frac{{x}^{4}{a}^{2}h}{4}}+{\frac{{x}^{4}abe}{2}}+{\frac{{x}^{3}{a}^{2}g}{3}}+{\frac{2\,abd{x}^{3}}{3}}+{\frac{{x}^{2}{a}^{2}f}{2}}+{x}^{2}abc+{a}^{2}ex+{a}^{2}d\ln \left ( x \right ) -{\frac{{a}^{2}c}{x}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x^3+a)^2*(h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/x^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.37963, size = 197, normalized size = 1.34 \[ \frac{1}{10} \, b^{2} h x^{10} + \frac{1}{9} \, b^{2} g x^{9} + \frac{1}{8} \, b^{2} f x^{8} + \frac{1}{7} \,{\left (b^{2} e + 2 \, a b h\right )} x^{7} + \frac{1}{6} \,{\left (b^{2} d + 2 \, a b g\right )} x^{6} + \frac{1}{5} \,{\left (b^{2} c + 2 \, a b f\right )} x^{5} + \frac{1}{4} \,{\left (2 \, a b e + a^{2} h\right )} x^{4} + a^{2} e x + \frac{1}{3} \,{\left (2 \, a b d + a^{2} g\right )} x^{3} + a^{2} d \log \left (x\right ) + \frac{1}{2} \,{\left (2 \, a b c + a^{2} f\right )} x^{2} - \frac{a^{2} c}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)*(b*x^3 + a)^2/x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.245877, size = 207, normalized size = 1.41 \[ \frac{252 \, b^{2} h x^{11} + 280 \, b^{2} g x^{10} + 315 \, b^{2} f x^{9} + 360 \,{\left (b^{2} e + 2 \, a b h\right )} x^{8} + 420 \,{\left (b^{2} d + 2 \, a b g\right )} x^{7} + 504 \,{\left (b^{2} c + 2 \, a b f\right )} x^{6} + 630 \,{\left (2 \, a b e + a^{2} h\right )} x^{5} + 2520 \, a^{2} e x^{2} + 840 \,{\left (2 \, a b d + a^{2} g\right )} x^{4} + 2520 \, a^{2} d x \log \left (x\right ) + 1260 \,{\left (2 \, a b c + a^{2} f\right )} x^{3} - 2520 \, a^{2} c}{2520 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)*(b*x^3 + a)^2/x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.983054, size = 156, normalized size = 1.06 \[ - \frac{a^{2} c}{x} + a^{2} d \log{\left (x \right )} + a^{2} e x + \frac{b^{2} f x^{8}}{8} + \frac{b^{2} g x^{9}}{9} + \frac{b^{2} h x^{10}}{10} + x^{7} \left (\frac{2 a b h}{7} + \frac{b^{2} e}{7}\right ) + x^{6} \left (\frac{a b g}{3} + \frac{b^{2} d}{6}\right ) + x^{5} \left (\frac{2 a b f}{5} + \frac{b^{2} c}{5}\right ) + x^{4} \left (\frac{a^{2} h}{4} + \frac{a b e}{2}\right ) + x^{3} \left (\frac{a^{2} g}{3} + \frac{2 a b d}{3}\right ) + x^{2} \left (\frac{a^{2} f}{2} + a b c\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x**3+a)**2*(h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/x**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.208964, size = 209, normalized size = 1.42 \[ \frac{1}{10} \, b^{2} h x^{10} + \frac{1}{9} \, b^{2} g x^{9} + \frac{1}{8} \, b^{2} f x^{8} + \frac{2}{7} \, a b h x^{7} + \frac{1}{7} \, b^{2} x^{7} e + \frac{1}{6} \, b^{2} d x^{6} + \frac{1}{3} \, a b g x^{6} + \frac{1}{5} \, b^{2} c x^{5} + \frac{2}{5} \, a b f x^{5} + \frac{1}{4} \, a^{2} h x^{4} + \frac{1}{2} \, a b x^{4} e + \frac{2}{3} \, a b d x^{3} + \frac{1}{3} \, a^{2} g x^{3} + a b c x^{2} + \frac{1}{2} \, a^{2} f x^{2} + a^{2} x e + a^{2} d{\rm ln}\left ({\left | x \right |}\right ) - \frac{a^{2} c}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)*(b*x^3 + a)^2/x^2,x, algorithm="giac")
[Out]